var arr=[1,2,3,3,3,5,6]
var a=Array.from(new Set(arr))
console.log(a);
var b=[...new Set(arr)]
console.log(b);
function ss(arr){
    for (let i = 0; i < arr.length; i++) {
       for(let j=i+1;j<arr.length;j++){
            if(arr[i]===arr[j]){
               arr.splice(j,1);
                    j--;
            }
       }
        
    }
    return arr
}
console.log(ss(arr));